package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.bean.wd_ht_build;
import com.bean.wd_ht_project;
import com.bean.wd_ht_room;
import com.bean.wd_opening_report;
import com.bean.wd_pay_type;
import com.dao.opening_payMapper;
import com.dao.wd_ht_buildMapper;
import com.dao.wd_ht_projectMapper;
import com.dao.wd_ht_roomMapper;
import com.dao.wd_opening_reportMapper;
import com.dao.wd_pay_typeMapper;
import com.service.OpenService;
@Service
public class OpenserviceImpl implements OpenService{
	@Autowired
	 @Qualifier("wd_opening_reportMapper")
	 private wd_opening_reportMapper wd_opening_reportMapper;
	//注入查询项目所有
	@Autowired
    @Qualifier("wd_ht_projectMapper")
	private wd_ht_projectMapper projectdDao;
	//注入查询所有房间dao
	@Autowired
    @Qualifier("wd_ht_roomMapper")
	private wd_ht_roomMapper roomDao;
	//注入支付方式dao
	@Autowired
    @Qualifier("wd_pay_typeMapper")
	private wd_pay_typeMapper payDao;
	//注入开盘-支付方式dao
	@Autowired
    @Qualifier("opening_payMapper")
	private opening_payMapper paytypeDao;
	//注入支付方式dao
	@Autowired
	@Qualifier("wd_pay_typeMapper")
	private wd_pay_typeMapper ralpaytype;
	
	public int deleteByPrimaryKey(String openingReportId) {
		return wd_opening_reportMapper.deleteByPrimaryKey(openingReportId);
	}

	public int insert(wd_opening_report record) {
		return wd_opening_reportMapper.insert(record);
	}

	public int insertSelective(wd_opening_report record) {
		return wd_opening_reportMapper.insertSelective(record);
	}

	public wd_opening_report selectByPrimaryKey(String openingReportId) {
		return wd_opening_reportMapper.selectByPrimaryKey(openingReportId);
	}

	public int updateByPrimaryKeySelective(wd_opening_report record) {
		return wd_opening_reportMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKeyWithBLOBs(wd_opening_report record) {
		
		return wd_opening_reportMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	public int updateByPrimaryKey(wd_opening_report record) {
		
		return wd_opening_reportMapper.updateByPrimaryKey(record);
	}
	
	public List<wd_opening_report> selectAll(wd_opening_report rname) {
		return wd_opening_reportMapper.selectAll(rname);
	}

	public List<wd_ht_project> selectObject() {
		
		return projectdDao.selectAll();
	}

	public List<wd_ht_project> selectRoomByBid(Map<String, Object> map) {
		return roomDao.selectRoomByBid(map);
	}

	public wd_ht_project selectObjectById(String bid) {
		return projectdDao.selectByPrimaryKey(bid);
	}

	public List<wd_ht_project> selectToMany(Map<String, Object> map) {
		return roomDao.oneManyToMany(map);
	}

	public List<wd_ht_project> selectIn(Map<String, Object> map) {
		return roomDao.selectIn(map);
	}

	public void changeTypeIn(Map<String, Object> upmap) {
		roomDao.changeTypeIn(upmap);
	}

	public String getUuid() {
		return wd_opening_reportMapper.getreportid();
	}

	public void upZheKou(Map<String, String> map) {
		wd_opening_reportMapper.upZheKou(map);
	}

	public List<wd_pay_type> getpayType() {
		return payDao.selectAll();
	}

	public void insertImportid(Map<String, Object> map) {
		roomDao.insertImportid(map);
	}

	public void addPayType(Map<String, String> map) {
		paytypeDao.addPayType(map);
	}

	public List<wd_ht_project> getfianlAll(String string) {
		return roomDao.getfianlAll(string);
	}

	public wd_opening_report getReportBean(String reportid) {
		return wd_opening_reportMapper.selectByPrimaryKey(reportid);
	}

	public String getPayType(String reportid) {
		return paytypeDao.getPayType(reportid);
	}

	public wd_pay_type getpaybean(String string) {
		
		return ralpaytype.selectByPrimaryKey(string);
	}

	public void updatePrice(wd_ht_room roomBean) {
		roomDao.updatePrice(roomBean);
	}

	

}
